home *** CD-ROM | disk | FTP | other *** search
- TAPEIO(3F) Last changed: 3-12-99
-
-
- NNAAMMEE
- ttooppeenn, ttcclloossee, ttrreeaadd, ttwwrriittee, ttrreewwiinn, ttsskkiippff, ttssttaattee - FORTRAN tape
- device-specific I/O routines
-
- SSYYNNOOPPSSIISS
- iinntteeggeerr ttooppeenn,, ttcclloossee,, ttrreeaadd,, ttwwrriittee,, ttrreewwiinn,, ttsskkiippff,, ttssttaattee
- iinntteeggeerr _t_l_u
- cchhaarraacctteerr**((**)) _b_u_f_f_e_r
- cchhaarraacctteerr**((**)) _d_e_v_n_a_m
- llooggiiccaall _l_a_b_l_e_d
-
- _i_e_r_r_o_r == ttooppeenn((_t_l_u,, _d_e_v_n_a_m,, _l_a_b_l_e_d))
- _i_e_r_r_o_r == ttcclloossee((_t_l_u))
- _n_b_y_t_e_s == ttrreeaadd((_t_l_u,, _b_u_f_f_e_r))
- _n_b_y_t_e_s == ttwwrriittee((_t_l_u,, _b_u_f_f_e_r))
- _i_e_r_r_o_r == ttrreewwiinn ((_t_l_u))
- _i_e_r_r_o_r == ttsskkiippff ((_t_l_u,, _n_f_i_l_e_s,, _n_r_e_c_s))
-
- iinntteeggeerr _f_i_l_e_n_o,, _r_e_c_n_o,, _e_r_r,, _e_o_f,, _e_o_t,, _t_c_s_r
- _i_e_r_r_o_r == ttssttaattee ((_t_l_u,, _f_i_l_e_n_o,, _r_e_c_n_o,, _e_r_r,, _e_o_f,, _e_o_t,, _t_c_s_r))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems
-
- MIPSpro Fortran 77
-
- DDEESSCCRRIIPPTTIIOONN
- ttaappeeiioo is the general name for the set of intrinsic I/O functions that
- operate on a tape device. ttooppeenn, ttcclloossee, ttrreewwiinn, ttsskkiippff, and ttssttaattee
- return --11 on error, 00 if successful. ttrreeaadd and ttwwrriittee return --11 on
- error, the number of bytes read (or written) on success.
-
- ttooppeenn opens a tape unit for I/O. _d_e_v_n_a_m is the name of the tape
- device. _l_a_b_l_e_d should be ..ttrruuee.. if the tape is labeled. _t_l_u is set
- to the logical unit number of the tape device used for subsequent
- calls.
-
- ttcclloossee closes a tape unit previously opened by ttooppeenn.
-
- ttrreeaadd reads from the tape device into _b_u_f_f_e_r. _n_b_y_t_e_s is set to the
- number of bytes actually read, or --11 for an error. Zero (0) may be
- returned in an end-of-file or end-of-tape situation.
-
- ttwwrriittee writes to the tape device from _b_u_f_f_e_r. _n_b_y_t_e_s is set to the
- number of bytes actually written, or --11 for an error.
-
- ttrreewwiinn rewinds the tape device.
-
- ttsskkiippff skips forward _n_f_i_l_e_s files and _n_r_e_c_s records.
-
- ttssttaattee returns the status of the tape channel. Upon successful
- completion, 0 is returned and the following values are set:
-
- _f_i_l_e_n_o current file number
-
- _r_e_c_n_o current record number
-
- _e_r_r 1 if there are errors, 0 if there are no errors
-
- _e_o_f 1 if it is at end-of-file, 0 if not
-
- _e_o_t 1 if it is at end-of-tape, 0 if not
-
- _t_c_s_r the value of the drive status register; see mmtt__ddssrreegg in
- //uussrr//iinncclluuddee//ssyyss//mmttiioo..hh.
-
- SSEEEE AALLSSOO
- mmttiioo(7)
-
- This man page is available only online.
-